<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div class="box">

  </div>
  <script>
    function create () {
      let el = document.createElement('div');
      for (let i = 0; i < 1000; i++) {
        let p = document.createElement('p');
        p.innerHTML = i
        el.appendChild(p);
      }
      document.querySelector('.box').appendChild(el)
    }
    create()
  </script>
</body>

</html>